package yedean.bean;

import java.util.HashMap;
import java.util.Map;

/**
 * UserDap
 *
 * @author yedean
 * @date 2022/7/6
 */
public class UserDao {
    
    
    private static final Map<String,String> map =new HashMap<>();
    
    public void initDataMethod(){
        System.out.println("执行：init-method");
        map.put("10001", "小傅哥");
        map.put("10002", "八杯水");
        map.put("10003", "阿毛");
    }
    
    public void destroyDataMethod(){
        System.out.println("执行：destroy-method");
        map.clear();
    }

    public String queryUserName(String uId) {
        return map.get(uId);
    }
}
